package com.xiaoyi.springboot.constant;


import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

public class Constants {
    private Constants(){}
    /** ip验证 */
    public static final  String ipReg= "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3} \\d{1,6}";
    public static final Pattern ipPattern = Pattern.compile("(\\d+\\.\\d+\\.\\d+\\.\\d+)");
    /** 端口验证 */
    public static final String portRes = ":(\\d+?)";
    public static final Pattern ipPortPattern = Pattern.compile("(\\d+\\.\\d+\\.\\d+\\.\\d+)\\:(\\d+)");
    public static final Pattern ipPortPattern_LDL = Pattern.compile("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}) (\\d{1,6})");
    /** 缓存 */
    public static final String CACHE_PROXY_LIST_KEY = "proxy:cache:list";
    public final static String X_ACCESS_TOKEN = "X-Access-Token";

    public static  String key = "1234567890adbcde";//长度为16个字符

    public static  String iv  = "1234567890hjlkew";//长度为16个字符


    /**
     * 缓存用户信息
     */
    public static final String SYS_USERS_CACHE = "sys:cache:user";
    /**
     * 测试缓存key
     */
    public static final String TEST_DEMO_CACHE = "test:demo";


}
